//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-01A
TN_Widget.CreateTable([['Korpiklaani','Mr Small's Theatre','Pittsburgh, PA','Saturday','5/4/2024','6:30 PM','6158257','Korpiklaani-5-4-2024'],['Obituary','Mr Small's Theatre','Pittsburgh, PA','Wednesday','5/8/2024','8:00 PM','6284298','Obituary-5-8-2024'],['They Might Be Giants - 3 Day Pass','Mr Small's Theatre','Pittsburgh, PA','Thursday','5/9/2024','TBD','6264814','They-Might-Be-Giants---3-Day-Pass-5-9-2024'],['They Might Be Giants','Mr Small's Theatre','Pittsburgh, PA','Thursday','5/9/2024','8:00 PM','6264811','They-Might-Be-Giants-5-9-2024'],['They Might Be Giants','Mr Small's Theatre','Pittsburgh, PA','Friday','5/10/2024','8:00 PM','6264812','They-Might-Be-Giants-5-10-2024'],['They Might Be Giants','Mr Small's Theatre','Pittsburgh, PA','Saturday','5/11/2024','8:00 PM','6264813','They-Might-Be-Giants-5-11-2024'],['Karaoke Kabaret','Mr Small's Theatre','Pittsburgh, PA','Wednesday','5/15/2024','7:30 PM','6361167','Karaoke-Kabaret-5-15-2024'],['In Flames','Mr Small's Theatre','Pittsburgh, PA','Thursday','5/16/2024','7:00 PM','6227345','In-Flames-5-16-2024'],['Phosphorescent','Mr Small's Theatre','Pittsburgh, PA','Wednesday','5/22/2024','8:00 PM','6391806','Phosphorescent-5-22-2024'],['X Ambassadors','Mr Small's Theatre','Pittsburgh, PA','Tuesday','5/28/2024','7:30 PM','6227339','X-Ambassadors-5-28-2024'],['Porters , Feast On The Fallen & Victims of Contagion','Mr Small's Theatre','Pittsburgh, PA','Friday','5/31/2024','8:00 PM','6359249','Porters---Feast-On-The-Fallen---Victims-of-Contagion-5-31-2024'],['United We Dance - EDM Dance Party','Mr Small's Theatre','Pittsburgh, PA','Saturday','6/1/2024','8:30 PM','6381260','United-We-Dance---EDM-Dance-Party-6-1-2024'],['Lucero - The Band','Mr Small's Theatre','Pittsburgh, PA','Sunday','6/2/2024','8:00 PM','6277007','Lucero---The-Band-6-2-2024'],['Valleyview','Mr Small's Theatre','Pittsburgh, PA','Saturday','6/8/2024','8:00 PM','6375136','Valleyview-6-8-2024'],['Wilderado','Mr Small's Theatre','Pittsburgh, PA','Sunday','6/9/2024','8:00 PM','6292556','Wilderado-6-9-2024'],['Man Man','Mr Small's Theatre','Pittsburgh, PA','Friday','6/14/2024','8:00 PM','6331927','Man-Man-6-14-2024'],['Kim Gordon','Mr Small's Theatre','Pittsburgh, PA','Saturday','6/15/2024','8:00 PM','6304880','Kim-Gordon-6-15-2024'],['Christone Kingfish Ingram','Mr Small's Theatre','Pittsburgh, PA','Friday','6/21/2024','8:00 PM','6357205','Christone-Kingfish-Ingram-6-21-2024'],['Baroness','Mr Small's Theatre','Pittsburgh, PA','Monday','6/24/2024','8:00 PM','6395716','Baroness-6-24-2024'],['Aaron West And The Roaring Twenties','Mr Small's Theatre','Pittsburgh, PA','Thursday','6/27/2024','7:00 PM','6234089','Aaron-West-And-The-Roaring-Twenties-6-27-2024'],['The Crane Wives','Mr Small's Theatre','Pittsburgh, PA','Sunday','7/28/2024','8:00 PM','6341675','The-Crane-Wives-7-28-2024'],['Sleater-Kinney','Mr Small's Theatre','Pittsburgh, PA','Monday','7/29/2024','8:00 PM','6372936','Sleater-Kinney-7-29-2024'],['Cults','Mr Small's Theatre','Pittsburgh, PA','Thursday','8/1/2024','8:00 PM','6400559','Cults-8-1-2024'],['Built To Spill','Mr Small's Theatre','Pittsburgh, PA','Friday','8/30/2024','8:00 PM','6361244','Built-To-Spill-8-30-2024'],['GWAR','Mr Small's Theatre','Pittsburgh, PA','Monday','9/16/2024','6:45 PM','6387188','GWAR-9-16-2024'],['Faun','Mr Small's Theatre','Pittsburgh, PA','Wednesday','10/2/2024','8:00 PM','6330324','Faun-10-2-2024'],['DJ Shadow ','Mr Small's Theatre','Pittsburgh, PA','Tuesday','10/8/2024','8:00 PM','6385285','DJ-Shadow---10-8-2024'],['Ocie Elliott','Mr Small's Theatre','Pittsburgh, PA','Monday','11/11/2024','8:00 PM','6328047','Ocie-Elliott-11-11-2024']],'Mr. Smalls Theatre','http://www.ticketnetwork.com/ticket/Mr.-Smalls-Theatre-events.aspx');